package views.activity;

import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JList;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.SwingConstants;

public class UpdateVolunteerActivityView extends JPanel {
	
	public JTextField txtTitle;
	public JComboBox<String> cmbType;
	public JComboBox<String> cmbMonthFiled;
	public JComboBox<Integer> cmbDayFiled;
	public JComboBox<Integer> cmbYearFiled;
	public JComboBox<String> cmbMonthApproved;
	public JComboBox<Integer> cmbDayApproved;
	public JComboBox<Integer> cmbYearApproved;
	public JComboBox<String> cmbMonthOfActivity;
	public JComboBox<Integer> cmbDayOfActivity;
	public JComboBox<Integer> cmbYearOfActivity;
	public JComboBox<String> cmbMonthDue;
	public JComboBox<Integer> cmbDayDue;
	public JComboBox<Integer> cmbYearDue;
	public JList<String> lstOrganizations;
	public JButton btnUpdateBeneficiaryies;
	public JButton btnUpdateAdvisers;
	public JButton btnUpdateParticipants;
	public JButton btnUpdateRemarks;
	public JButton btnOrganizationEvaluation;
	public JButton btnAdviserEvaluation;
	public JButton btnBeneficiaryEvaluation;
	public JCheckBox chkOrganizationEvaluation;
	public JCheckBox chkAdviserEvaluation;
	public JCheckBox chkBeneficiaryEvaluation;
	public JButton btnSave;
	public JButton btnCancel;
	public JButton btnClear;
	
	public UpdateVolunteerActivityView() {
		this.setSize(404, 775);
		this.setLayout(null);
		
		JLabel lblUpdateTheActivity = new JLabel("Update the activity");
		lblUpdateTheActivity.setFont(new Font("Arial Black", Font.PLAIN, 25));
		lblUpdateTheActivity.setBounds(10, 10, 384, 30);
		this.add(lblUpdateTheActivity);
		
		JLabel lblActivityTitle = new JLabel("Activity Title");
		lblActivityTitle.setFont(new Font("Arial", Font.PLAIN, 12));
		lblActivityTitle.setBounds(10, 50, 404, 20);
		this.add(lblActivityTitle);
		
		JLabel lblActivityType = new JLabel("Activity Type");
		lblActivityType.setFont(new Font("Arial", Font.PLAIN, 12));
		lblActivityType.setBounds(10, 100, 384, 20);
		this.add(lblActivityType);
		
		JLabel lblDateFiled = new JLabel("Date Filed");
		lblDateFiled.setFont(new Font("Arial", Font.PLAIN, 12));
		lblDateFiled.setBounds(10, 150, 384, 20);
		this.add(lblDateFiled);
		
		JLabel lblDateApproved = new JLabel("Date Approved");
		lblDateApproved.setFont(new Font("Arial", Font.PLAIN, 12));
		lblDateApproved.setBounds(10, 200, 384, 20);
		this.add(lblDateApproved);
		
		JLabel lblDateOfActivity = new JLabel("Date of Activity");
		lblDateOfActivity.setFont(new Font("Arial", Font.PLAIN, 12));
		lblDateOfActivity.setBounds(10, 250, 384, 20);
		this.add(lblDateOfActivity);
		
		JLabel lblDateDue = new JLabel("Date Due");
		lblDateDue.setFont(new Font("Arial", Font.PLAIN, 12));
		lblDateDue.setBounds(10, 300, 384, 20);
		this.add(lblDateDue);
		
		JLabel lblSponsoringOrganizations = new JLabel("Sponsoring Organization/s");
		lblSponsoringOrganizations.setFont(new Font("Arial", Font.PLAIN, 12));
		lblSponsoringOrganizations.setBounds(10, 350, 384, 20);
		this.add(lblSponsoringOrganizations);
		
		JLabel lblEvaluations = new JLabel("Evaluations");
		lblEvaluations.setFont(new Font("Arial", Font.PLAIN, 12));
		lblEvaluations.setBounds(10, 600, 384, 20);
		add(lblEvaluations);
		
		txtTitle = new JTextField();
		txtTitle.setBounds(10, 70, 384, 20);
		this.add(txtTitle);
		
		cmbType = new JComboBox<String>();
		cmbType.setBounds(10, 120, 384, 20);
		this.add(cmbType);
		
		cmbMonthFiled = new JComboBox<String>();
		cmbMonthFiled.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbMonthFiled.setBounds(37, 170, 181, 20);
		this.add(cmbMonthFiled);
		
		cmbDayFiled = new JComboBox<Integer>();
		cmbDayFiled.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbDayFiled.setBounds(228, 170, 50, 20);
		this.add(cmbDayFiled);
		
		cmbYearFiled = new JComboBox<Integer>();
		cmbYearFiled.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbYearFiled.setBounds(287, 170, 80, 20);
		this.add(cmbYearFiled);
		
		cmbMonthApproved = new JComboBox<String>();
		cmbMonthApproved.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbMonthApproved.setBounds(37, 220, 181, 20);
		this.add(cmbMonthApproved);
		
		cmbDayApproved = new JComboBox<Integer>();
		cmbDayApproved.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbDayApproved.setBounds(228, 220, 50, 20);
		this.add(cmbDayApproved);
		
		cmbYearApproved = new JComboBox<Integer>();
		cmbYearApproved.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbYearApproved.setBounds(287, 220, 80, 20);
		this.add(cmbYearApproved);
		
		cmbMonthOfActivity = new JComboBox<String>();
		cmbMonthOfActivity.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbMonthOfActivity.setBounds(37, 270, 181, 20);
		this.add(cmbMonthOfActivity);
		
		cmbDayOfActivity = new JComboBox<Integer>();
		cmbDayOfActivity.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbDayOfActivity.setBounds(228, 270, 50, 20);
		this.add(cmbDayOfActivity);
		
		cmbYearOfActivity = new JComboBox<Integer>();
		cmbYearOfActivity.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbYearOfActivity.setBounds(287, 270, 80, 20);
		this.add(cmbYearOfActivity);
		
		cmbMonthDue = new JComboBox<String>();
		cmbMonthDue.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbMonthDue.setBounds(37, 320, 181, 20);
		this.add(cmbMonthDue);
		
		cmbDayDue = new JComboBox<Integer>();
		cmbDayDue.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbDayDue.setBounds(228, 320, 50, 20);
		this.add(cmbDayDue);
		
		cmbYearDue = new JComboBox<Integer>();
		cmbYearDue.setFont(new Font("Arial", Font.PLAIN, 12));
		cmbYearDue.setBounds(287, 320, 80, 20);
		this.add(cmbYearDue);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(37, 370, 330, 150);
		this.add(scrollPane);
		
		lstOrganizations = new JList<String>();
		lstOrganizations.setLocation(38, 0);
		lstOrganizations.setFont(new Font("Arial", Font.PLAIN, 12));
		scrollPane.setViewportView(lstOrganizations);
		
		btnUpdateBeneficiaryies = new JButton("Update Beneficiary/ies");
		btnUpdateBeneficiaryies.setFont(new Font("Arial", Font.PLAIN, 12));
		btnUpdateBeneficiaryies.setBounds(10, 530, 180, 25);
		add(btnUpdateBeneficiaryies);
		
		btnUpdateAdvisers = new JButton("Update Adviser/s");
		btnUpdateAdvisers.setFont(new Font("Arial", Font.PLAIN, 12));
		btnUpdateAdvisers.setBounds(214, 530, 180, 25);
		add(btnUpdateAdvisers);
		
		btnUpdateParticipants = new JButton("Update Participant/s");
		btnUpdateParticipants.setFont(new Font("Arial", Font.PLAIN, 12));
		btnUpdateParticipants.setBounds(10, 565, 180, 25);
		add(btnUpdateParticipants);
		
		btnUpdateRemarks = new JButton("Update Remark/s");
		btnUpdateRemarks.setFont(new Font("Arial", Font.PLAIN, 12));
		btnUpdateRemarks.setBounds(214, 565, 180, 25);
		add(btnUpdateRemarks);
		
		btnOrganizationEvaluation = new JButton("Organization Evaluation");
		btnOrganizationEvaluation.setFont(new Font("Arial", Font.PLAIN, 12));
		btnOrganizationEvaluation.setBounds(108, 620, 220, 25);
		add(btnOrganizationEvaluation);
		
		btnAdviserEvaluation = new JButton("Adviser Evaluation");
		btnAdviserEvaluation.setFont(new Font("Arial", Font.PLAIN, 12));
		btnAdviserEvaluation.setBounds(108, 650, 220, 25);
		add(btnAdviserEvaluation);
		
		btnBeneficiaryEvaluation = new JButton("Beneficiary Evaluation");
		btnBeneficiaryEvaluation.setFont(new Font("Arial", Font.PLAIN, 12));
		btnBeneficiaryEvaluation.setBounds(108, 680, 220, 25);
		add(btnBeneficiaryEvaluation);
		
		chkOrganizationEvaluation = new JCheckBox("");
		chkOrganizationEvaluation.setHorizontalAlignment(SwingConstants.CENTER);
		chkOrganizationEvaluation.setEnabled(false);
		chkOrganizationEvaluation.setBounds(77, 620, 25, 25);
		add(chkOrganizationEvaluation);
		
		chkAdviserEvaluation = new JCheckBox("");
		chkAdviserEvaluation.setHorizontalAlignment(SwingConstants.CENTER);
		chkAdviserEvaluation.setEnabled(false);
		chkAdviserEvaluation.setBounds(77, 650, 25, 25);
		add(chkAdviserEvaluation);
		
		chkBeneficiaryEvaluation = new JCheckBox("");
		chkBeneficiaryEvaluation.setHorizontalAlignment(SwingConstants.CENTER);
		chkBeneficiaryEvaluation.setEnabled(false);
		chkBeneficiaryEvaluation.setBounds(77, 680, 25, 25);
		add(chkBeneficiaryEvaluation);
		
		btnSave = new JButton("Save");
		btnSave.setFont(new Font("Arial", Font.PLAIN, 12));
		btnSave.setBounds(314, 740, 80, 25);
		add(btnSave);
		
		btnCancel = new JButton("Cancel");
		btnCancel.setFont(new Font("Arial", Font.PLAIN, 12));
		btnCancel.setBounds(10, 740, 80, 25);
		add(btnCancel);
		
		btnClear = new JButton("Clear");
		btnClear.setFont(new Font("Arial", Font.PLAIN, 12));
		btnClear.setBounds(162, 740, 80, 25);
		add(btnClear);
	}
}
